package edu.gdkm.service.impl;

import edu.gdkm.dao.IBookDao;
import edu.gdkm.pojo.Book;
import edu.gdkm.service.IBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceImpl implements IBookService {
    @Autowired
    IBookDao iBookDao;
    @Override
    public Book getBookByBid(Integer bid) {
        return iBookDao.getBookByBid(bid);
    }

    @Override
    public List<Book> getBookList() {
        return iBookDao.getBookList();
    }

}
